#include<stdio.h>
#include<unistd.h>
int main()
{
  printf("进程1pdi:%d\n",getpid());
 pid_t pid = fork();
 if(pid==0)
 printf("fork()后子进程 pid:%d\n",getpid());
  else 
  {
    printf("父进程pid:%d\n",getpid());
  }
  return 0;
}
